from django.conf.urls.defaults import *

#urlpatterns = patterns('',
#    (r'^admin/', include('django.contrib.admin.urls')),
#    (r'^jobs/$', 'djproject.jobs.views.index'),
#    (r'^jobs/(?P<job_id>\d+)/$', 'djproject.jobs.views.detail'),

#    (r'^$', 'djproject.jobs.views.index'),
#    (r'^(?P<job_id>\d+)/$', 'djproject.jobs.views.detail'),


#    (r'^admin/', include('django.contrib.admin.urls.admin')),
#    (r'^jobs/', include('djproject.jobs.urls')),
#)

from jobs.models import Job

info_dict = {
    'queryset': Job.objects.all(),
}

urlpatterns = patterns('django.views.generic.list_detail',
    (r'^$', 'object_list', info_dict),
    (r'^(?P<object_id>\d+)/$', 'object_detail', info_dict),

    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^admin/', include('django.contrib.admin.urls.admin')),
                    
)
